package com.domdd.core.tl;

public class ReqAppKeyThreadLocal {
    public static ThreadLocal<String> threadLocal = new ThreadLocal<>();

    public static void setAppKey(String appKey) {
        threadLocal.set(appKey);
    }

    public static void removeAppKey() {
        threadLocal.remove();
    }

    public static String getAppKey() {
        return threadLocal.get() == null ? "daneng-mdd" : threadLocal.get();
    }
}
